Basic Sankey Diagram

Column

Basic Sankey Diagram - Plot

Creating a Canvas

Column

Finishing Touchs

Plot

Style Sankey Diagram

Column

Plot

Node Positioning

Define Node Position

The following example sets node.x and node.y to place nodes in the specified locations, except in the snap arrangement (default behaviour when node.x and node.y are not defined) to avoid overlapping of the nodes, therefore, an automatic snapping of elements will be set to define the padding between nodes via nodepad. The other possible arrangements are: 1) perpendicular 2) freeform 3) fixed

Reference

See https://plotly.com/r/reference/#sankey for more information and options!